﻿using System;
using SqlSugar;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using Admin.NET.Core;
namespace Admin.NET.Application.Entity
{
    /// <summary>
    /// 
    /// </summary>
    [SugarTable("car_tagSub","")]
    [Tenant("1300000000001")]
    public class car_tagSub  : EntityBase
    {
        /// <summary>
        /// 目标tagid
        /// </summary>
        [SugarColumn(ColumnDescription = "目标tagid")]
        public long? tagid { get; set; }
        /// <summary>
        /// 子id
        /// </summary>
        [SugarColumn(ColumnDescription = "pid")]
        public long? pid { get; set; }

        public int? type { get; set; }



        [Navigate(NavigateType.OneToOne, nameof(tagid))]//一对一 SchoolId是StudentA类里面的
        public car_tag taginfo { get; set; } //不能赋值只能是null （要加默认值看用例4）
 
    }
}